<?php
$player = $game->player_get_uinfo();

if ($arr_data->nowmid != $player->nowmid){
    $out_html = "
     请正常玩游戏！<br/>
     <br/>
     {$变量_系统->链接_返回游戏}";

}elseif (isset($arr_data->gid)){
    $guaiwu = $game->gw_get_info($arr_data->gid);//获取当前怪物信息
    $yguaiwu = $game->gw_get_info_sys($arr_data->gyid);//获取怪物系统里面的信息

    $链接_进入战斗 = "";
    $链接_掉落装备 = "";
    $链接_掉落道具 = "";
    $链接_掉落药品 = "";

    if ($yguaiwu->ginfo==''){
        $yguaiwu->ginfo = '没有任何名气';
    }
    
    if (($guaiwu->sid !='' and $guaiwu->sid != $game->sid) or $guaiwu->gname==''){

        $dis_mid = $game->dis_get('排版_怪物不存在');
        eval("\$out_html = \"$dis_mid->dis_string\";");
        $out_html = str_replace("<br/><br/>", "<br/>",$out_html);
        $out_html = str_replace("<br/><br/>", "<br/>",$out_html);
        $html = str_replace("</div><br/>", "</div>",$out_html);

    }  else{
        $链接_进入战斗 = $game->create_url("cmd=pve_new&cmd2=intopve&gid={$arr_data->gid}&nowmid={$arr_data->nowmid}","进入战斗");

        if ($yguaiwu->gzb!=''){
            $zbarr = explode(',',$yguaiwu->gzb);
            foreach($zbarr as $newstr){
                $zbkzb = $game->zb_get_info_sys($newstr);
                $掉落装备  = $game->create_url("cmd=zbinfo_sys&cmd2=zbinfo_sys&zbid=$zbkzb->zbid","{$zbkzb->zbname}");
            }
        }

        if ($yguaiwu->gdj != ''){
            $djarr = explode(',',$yguaiwu->gdj);
            foreach($djarr as $newstr){
                $dj = $game->dj_get_sys($newstr);
                $掉落道具 = $game->create_url("cmd=djinfo&cmd2=zbinfo_sys&djid=$dj->djid","{$dj->djname}");
            }

        }
        if ($yguaiwu->gyp!=''){
            $yparr = explode(',',$yguaiwu->gyp);
            foreach($yparr as $newstr){
                $yp = $game->yp_get_info_sys($newstr);
                if ($yp){
                    $掉落药品 = $game->create_url("cmd=ypinfo&cmd2=ypinfo&ypid=$yp->ypid","$yp->ypname");;
                }

            }
        }

        $变量_怪物信息 = (object)array(
            "链接_掉落装备"=>$链接_掉落装备,
            "链接_掉落道具"=>$链接_掉落道具,
            "链接_掉落药品"=>$链接_掉落药品,
            "链接_进入战斗"=>$链接_进入战斗,
        );

        $dis_mid = $game->dis_get('排版_怪物信息');
        eval("\$out_html = \"$dis_mid->dis_string\";");
        $out_html = str_replace("<br/><br/>", "<br/>",$out_html);
        $out_html = str_replace("<br/><br/>", "<br/>",$out_html);
        $out_html = str_replace("</div><br/>", "</div>",$out_html);
    }
}
echo $out_html;
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/6/11
 * Time: 10:08
 */
?>

